import { BaseSpriteToolTip } from "../../common/tooltip/BaseSpriteToolTip";
import { ObjCreate } from "../../common/ObjCreate";
import { Language } from "../../../../../extend/language/Language";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { WardrobeCache } from "../../../cache/WardrobeCache";
import { FashionJewelToolTipsItem } from "./FashionJewelToolTipsItem";
//class FashionJewelEquipToolTipsPart
    
    export  class FashionJewelEquipToolTipsPart extends BaseSpriteToolTip
    {
        constructor()
        {
            super();
            this._arr = [];
            this._infoArr = [];
            this.initView();
            return;
        }

        /* internal  */initView(): void
        {
            var loc2=null;
            var loc1=ObjCreate.createGTextField(Language.getString(74613), 10, 1, 50, 20, this, GlobalStyle.textFormatOrange);
            var loc3=0;
            while (loc3 < WardrobeCache.FASHIONJEWELHOLE) 
            {
                loc2 = new FashionJewelToolTipsItem();
                loc2.x = 7;
                loc2.y = 20 + 26 * loc3;
                addChild(loc2);
                this._arr.push(loc2);
                ++loc3;
            }
            return;
        }

        public /* override */ set tooltipData(arg1)
        {
            var loc1=null;
            super.tooltipData = arg1;
            this._infoArr = arg1 as Array<any>;
            var loc2=0;
            while (loc2 < WardrobeCache.FASHIONJEWELHOLE) 
            {
                loc1 = this._arr[loc2];
                loc1.updateInfo(this._infoArr[loc2]);
                ++loc2;
            }
            return;
        }

        /* internal */ /* var */_arr: Array<any>;

        /* internal */ /* var */_infoArr: Array<any>;
    }
